package com.outlook.flowervow;

import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;

public class Main extends JavaPlugin {
    Main plugin;
    public static Main instance;
    @Override
    public void onEnable(){
        instance = this;
        saveDefaultConfig();
        final EventInventory class1 = new EventInventory(this);
        getServer().getMessenger().registerOutgoingPluginChannel(this,"BungeeCord");
        getServer().getPluginManager().registerEvents(new EventInventory(this),this);
        getServer().getPluginManager().registerEvents(new EventItemOpen(),this);
        getServer().getPluginManager().registerEvents(new EventPlayerJoin(),this);
        getCommand("gui").setExecutor(new CommandGui());
        getCommand("guireload").setExecutor(new CommandRelod());
        Bukkit.getConsoleSender().sendMessage("§a======================");

        Bukkit.getConsoleSender().sendMessage("§2茶姬Studio§f[TeaBane]插件加载成功");
        Bukkit.getConsoleSender().sendMessage("§2茶姬Studio§aDeveloper:Flowervow青染花誓");

        Bukkit.getConsoleSender().sendMessage("§a======================");
    }
    public void onDisable(){
        Bukkit.getConsoleSender().sendMessage("§a======================");

        Bukkit.getConsoleSender().sendMessage("§c茶姬Studio§f[TeaBane]插件已卸载");
        Bukkit.getConsoleSender().sendMessage("§c茶姬Studio§aDeveloper:Flowervow青染花誓");

        Bukkit.getConsoleSender().sendMessage("§a======================");

    }

}
